package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

@Component
public class Permission {
    private  int id;
    private int pid;
    private String name;
    private String path;
    private String component;
    private int level;
    private String title;

    public Permission() {
    }

    public Permission(int id, int pid, String name, String path, String component, int level, String title) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.path = path;
        this.component = component;
        this.level = level;
        this.title = title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", component='" + component + '\'' +
                ", level=" + level +
                ", title='" + title + '\'' +
                '}';
    }
}
